package com.tms.mapper.develop;

import com.tms.domain.Family;
import com.tms.domain.TDef;
import com.tms.domain.index.TDefUseRank;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ToolDefMapper {

    TDef selectByCode(String code);

    int deleteByPrimaryKey(Integer id);

    int insert(TDef record);

    int insertSelective(TDef record);

    TDef selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TDef record);

    int updateByPrimaryKey(TDef record);

    List<String> selectByWorkcellId(int workcellId);

    List<TDef> selectByContent(@Param(value = "param") String param, @Param(value = "content") String content,
                               @Param(value = "workcellId") int workcellId);

    int selectToolDefNum();

    List<TDefUseRank> selectTDefAndUseNum();

    Integer selectFamilyId(String familyName);

    List<Family> selectAllFamilies(int workcellId);
}